from django.urls import path
from . import views
from .consumers import Consumer

urlpatterns = [
    path('usersInfo/', views.usersInfo, name='usersInfo'),
    path('login/', views.login, name='login'),
    path('test/', views.test, name='test'),
    path('setEvents/', views.setEvents, name='setEvents'),
    path('getDevInfo/', views.getDevInfo, name='getDevInfo'),
    path('setDevTimes/', views.setDevTimes, name='setDevTimes'),
    path('setOtherDev/', views.setOtherDev, name='setOtherDev'),
    path('pushEvents/', views.pushEvents, name='pushEvents'),
    path('manualControlRel/', views.manualControlRel, name='manualControlRel'),
    path('toggleManual/', views.toggleManual, name='toggleManual'),
    path('getManualStatus/', views.getManualStatus, name='getManualStatus'),
    path('isRightTime/', views.isRightTime, name='isRightTime'),
    path('getSystemTime/', views.getSystemTime, name='getSystemTime'),
    path('setSysTime/', views.setSysTime, name='setSysTime')
]
websocket_urlpatterns = [
    path('connect/', Consumer),
]
